package com.ujiuye.mapper;

import com.ujiuye.pojo.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author zhangwenping
 * @since 2021-07-14
 */
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 根据用户ID查询角色信息
     * @param userId
     * @return
     */
    List<Role> selectRoleCodesByUserId(Integer userId);
}
